package com.eshop.logging.service.dto;

import java.sql.Timestamp;
import java.io.Serializable;

public class LogErrorDTO implements Serializable
{
    private Long id;
    private String username;
    private String description;
    private String method;
    private String params;
    private String browser;
    private String requestIp;
    private String address;
    private Timestamp createTime;
    
    public Long getId() {
        return this.id;
    }
    
    public String getUsername() {
        return this.username;
    }
    
    public String getDescription() {
        return this.description;
    }
    
    public String getMethod() {
        return this.method;
    }
    
    public String getParams() {
        return this.params;
    }
    
    public String getBrowser() {
        return this.browser;
    }
    
    public String getRequestIp() {
        return this.requestIp;
    }
    
    public String getAddress() {
        return this.address;
    }
    
    public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public void setId(final Long id) {
        this.id = id;
    }
    
    public void setUsername(final String username) {
        this.username = username;
    }
    
    public void setDescription(final String description) {
        this.description = description;
    }
    
    public void setMethod(final String method) {
        this.method = method;
    }
    
    public void setParams(final String params) {
        this.params = params;
    }
    
    public void setBrowser(final String browser) {
        this.browser = browser;
    }
    
    public void setRequestIp(final String requestIp) {
        this.requestIp = requestIp;
    }
    
    public void setAddress(final String address) {
        this.address = address;
    }
    
    public void setCreateTime(final Timestamp createTime) {
        this.createTime = createTime;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof LogErrorDTO)) {
            return false;
        }
        final LogErrorDTO other = (LogErrorDTO)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        Label_0065: {
            if (this$id == null) {
                if (other$id == null) {
                    break Label_0065;
                }
            }
            else if (this$id.equals(other$id)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$username = this.getUsername();
        final Object other$username = other.getUsername();
        Label_0102: {
            if (this$username == null) {
                if (other$username == null) {
                    break Label_0102;
                }
            }
            else if (this$username.equals(other$username)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$description = this.getDescription();
        final Object other$description = other.getDescription();
        Label_0139: {
            if (this$description == null) {
                if (other$description == null) {
                    break Label_0139;
                }
            }
            else if (this$description.equals(other$description)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$method = this.getMethod();
        final Object other$method = other.getMethod();
        Label_0176: {
            if (this$method == null) {
                if (other$method == null) {
                    break Label_0176;
                }
            }
            else if (this$method.equals(other$method)) {
                break Label_0176;
            }
            return false;
        }
        final Object this$params = this.getParams();
        final Object other$params = other.getParams();
        Label_0213: {
            if (this$params == null) {
                if (other$params == null) {
                    break Label_0213;
                }
            }
            else if (this$params.equals(other$params)) {
                break Label_0213;
            }
            return false;
        }
        final Object this$browser = this.getBrowser();
        final Object other$browser = other.getBrowser();
        Label_0250: {
            if (this$browser == null) {
                if (other$browser == null) {
                    break Label_0250;
                }
            }
            else if (this$browser.equals(other$browser)) {
                break Label_0250;
            }
            return false;
        }
        final Object this$requestIp = this.getRequestIp();
        final Object other$requestIp = other.getRequestIp();
        Label_0287: {
            if (this$requestIp == null) {
                if (other$requestIp == null) {
                    break Label_0287;
                }
            }
            else if (this$requestIp.equals(other$requestIp)) {
                break Label_0287;
            }
            return false;
        }
        final Object this$address = this.getAddress();
        final Object other$address = other.getAddress();
        Label_0324: {
            if (this$address == null) {
                if (other$address == null) {
                    break Label_0324;
                }
            }
            else if (this$address.equals(other$address)) {
                break Label_0324;
            }
            return false;
        }
        final Object this$createTime = this.getCreateTime();
        final Object other$createTime = other.getCreateTime();
        if (this$createTime == null) {
            if (other$createTime == null) {
                return true;
            }
        }
        else if (this$createTime.equals(other$createTime)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof LogErrorDTO;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        final Object $username = this.getUsername();
        result = result * 59 + (($username == null) ? 43 : $username.hashCode());
        final Object $description = this.getDescription();
        result = result * 59 + (($description == null) ? 43 : $description.hashCode());
        final Object $method = this.getMethod();
        result = result * 59 + (($method == null) ? 43 : $method.hashCode());
        final Object $params = this.getParams();
        result = result * 59 + (($params == null) ? 43 : $params.hashCode());
        final Object $browser = this.getBrowser();
        result = result * 59 + (($browser == null) ? 43 : $browser.hashCode());
        final Object $requestIp = this.getRequestIp();
        result = result * 59 + (($requestIp == null) ? 43 : $requestIp.hashCode());
        final Object $address = this.getAddress();
        result = result * 59 + (($address == null) ? 43 : $address.hashCode());
        final Object $createTime = this.getCreateTime();
        result = result * 59 + (($createTime == null) ? 43 : $createTime.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "LogErrorDTO(id=" + this.getId() + ", username=" + this.getUsername() + ", description=" + this.getDescription() + ", method=" + this.getMethod() + ", params=" + this.getParams() + ", browser=" + this.getBrowser() + ", requestIp=" + this.getRequestIp() + ", address=" + this.getAddress() + ", createTime=" + this.getCreateTime() + ")";
    }
}
